package it.text;

public class text03 {
    public static void main(String[] args) {
        int[] arr1={1,2,3,4};
        int[] arr2={1,2,4,4};
        boolean sname = snameArrInt(arr1,arr2);
        if(sname) System.out.println("两个数组的内容、长度。顺序完全相同");
        else System.out.println("两个数组的内容、长度。顺序不完全相同");
    }

    public static boolean snameArrInt(int[] arr1,int[] arr2) {
//        int bool=-1;
        if(arr1.length==arr2.length){
            for (int i = 0; i < arr1.length; i++) {
                if (arr1[i] != arr2[i]) {
                  return false;
                }
            }

        }
        else return false;

        return true;
    }

}
